package com.xhh.learning.record.threadpool;

import java.util.concurrent.TimeUnit;

public interface Task {

    boolean cancel();

    boolean isCancelled();

    boolean isDone();

    boolean get();

    boolean get(long timeout, TimeUnit unit);
}
